import { Store } from 'vuex'

interface UserState {
  token: string | undefined
  name: string
  avatar: string
  roles: string[]
}

interface PermissionState {
  routes: any[]
  addRoutes: any[]
  isRoutesLoaded: boolean
}

export interface RootState {
  user: UserState
  permission: PermissionState
}

export type AppStore = Store<RootState> 